//
//  WeatherViewController.m
//  iNews
//
//  Created by lanou3g on 14-12-12.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "WeatherViewController.h"
#import "WeatherView.h"


@interface WeatherViewController ()

@property (nonatomic, retain)WeatherView *weatherV;

@end

@implementation WeatherViewController

- (void)dealloc
{
    [_weatherV release];
    [_tempStr release];
    
    [super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
        
        self.weatherV = [[[WeatherView alloc] initWithFrame:[UIScreen mainScreen].bounds] autorelease];
        
    }
    return self;
}

- (void)loadView
{
    self.view = self.weatherV;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self.weatherV.backButton addTarget:self action:@selector(back:) forControlEvents:UIControlEventTouchUpInside];
    
    
}

- (void)back:(UIButton *)sender
{
    NSLog(@"点击");
    [self dismissViewControllerAnimated:YES completion:nil];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
